#!/usr/bin/env python
# -*- coding:utf8 -*-
# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: ./login/bkaccount/migrations/0001_initial.py
# Compiled at: 2017-11-16 15:44:28
u"""
Tencent is pleased to support the open source community by making \u84dd\u9cb8\u667a\u4e91(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
"""
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings

class Migration(migrations.Migration):
    dependencies = [
     (u'auth', u'0006_require_contenttypes_0002')]
    operations = [
     migrations.CreateModel(name='BkUser', fields=[
      (
       'id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
      (
       'password', models.CharField(max_length=128, verbose_name='password')),
      (
       'last_login', models.DateTimeField(null=True, verbose_name='last login', blank=True)),
      (
       'is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
      (
       'username', models.CharField(unique=True, max_length=128, verbose_name=u'用户名')),
      (
       'chname', models.CharField(max_length=254, verbose_name=u'中文名', blank=True)),
      (
       'qq', models.CharField(max_length=32, verbose_name=u'QQ号', blank=True)),
      (
       'phone', models.CharField(max_length=64, verbose_name=u'手机号', blank=True)),
      (
       'email', models.EmailField(max_length=254, verbose_name=u'邮箱', blank=True)),
      (
       'date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
      (
       'groups', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', verbose_name='groups')),
      (
       'user_permissions', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Permission', blank=True, help_text='Specific permissions for this user.', verbose_name='user permissions'))], options={'verbose_name': 'user',
        'verbose_name_plural': 'users'
        }),
     migrations.CreateModel(name='BkToken', fields=[
      (
       'id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
      (
       'token', models.CharField(unique=True, max_length=255, verbose_name=u'登录票据', db_index=True)),
      (
       'is_logout', models.BooleanField(default=False, verbose_name=u'票据是否已经执行过退出登录操作'))], options={'db_table': 'login_bktoken',
        'verbose_name': u'登录票据',
        'verbose_name_plural': u'登录票据'
        }),
     migrations.CreateModel(name='Loignlog', fields=[
      (
       'id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
      (
       'login_time', models.DateTimeField(verbose_name=u'登录时间')),
      (
       'login_browser', models.CharField(max_length=200, null=True, verbose_name=u'登录浏览器', blank=True)),
      (
       'login_ip', models.CharField(max_length=50, null=True, verbose_name=u'用户登录ip', blank=True)),
      (
       'login_host', models.CharField(max_length=100, null=True, verbose_name=u'登录HOST', blank=True)),
      (
       'app_id', models.CharField(max_length=30, null=True, verbose_name=b'APP_ID', blank=True)),
      (
       'user', models.ForeignKey(verbose_name=u'用户', to=settings.AUTH_USER_MODEL))], options={'db_table': 'login_bklog',
        'verbose_name': u'用户登录日志',
        'verbose_name_plural': u'用户登录日志'
        })]
